import request from '@/axios'

function formatRequestUri(name) {
  return 'hr/msg/' + name
}
export function Query(query, paging) {
  return request.post({
    url: formatRequestUri('Query'),
    data: {
      Query: query,
      Index: paging.Index,
      Size: paging.Size,
      SortName: paging.SortName,
      IsDesc: paging.IsDesc
    }
  })
}
export function GetMsgTotal(query) {
  return request.post({
    url: formatRequestUri('GetUserMsgTotal'),
    data: query
  })
}
export function SetRead(id) {
  return request.get({
    url: formatRequestUri('SetRead'),
    params: {
      id
    }
  })
}
